import { Injectable } from '@angular/core';
import { ServiceBasic } from '../../kalend';
import { Http } from '@angular/http';

@Injectable()
export class DatadictionaryService extends ServiceBasic {
  constructor(http: Http) {
    super('/datadictionary', http);
  }
  queryByKey(key: any) {
    return this.httppost(`/queryByKey`, { key: key });
  }
  save(doc: any) {
    return this.httppost(`/save`, doc);
  }
  queryBycode(key: any) {
    return this.httpget(`/queryBycode/${key}`);
  }
}
